package com.project.pojo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @Description: 垃圾回收下单入参类
 * @Author: zhuchi
 * @CreateDate: 2020/11/14 12:13
 * @Version: 1.0
 */
@Data
@ApiModel(value = "垃圾回收下单入参类")
public class AddRecoveryOrderModel {

    /**
     * 用户收货地址ID
     */
    @NotNull(message = "请选择收货地址")
    @ApiModelProperty(value = "用户收货地址ID")
    private Long addressId;

    /**
     * 上门时间开始
     */
    @NotNull(message = "请选择上门时间段")
    @ApiModelProperty(value = "上门时间开始")
    private Date visitingStartTime;

    /**
     * 上门时间结束
     */
    @NotNull(message = "请选择上门时间段")
    @ApiModelProperty(value = "上门时间结束")
    private Date visitingEndTime;

    /**
     * 回收商品
     */
    @NotNull(message = "请选择回收商品")
    @Size(min = 1, message = "请选择回收商品")
    @ApiModelProperty(value = "回收商品")
    private List<AddRecoveryOrderProModel> recoveryOrderPros;

}
